package com.wyh.blog.service.impl;

import com.wyh.blog.dao.UserDao;
import com.wyh.blog.entity.Article;
import com.wyh.blog.entity.User;
import com.wyh.blog.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User verifyAccount(String name, String pwd) {
        User user =  userDao.verifyAccount(name,pwd);

        return user;
    }

    @Override
    public List<Article> article() {
        return userDao.article();
    }
}
